package com.linsir.auth.modules.oauth.repository;

import com.linsir.auth.modules.oauth.entity.RedisRegisteredClient;
import org.springframework.data.repository.CrudRepository;

import java.util.Optional;

/**
 * @author linsir
 * @version v0.0.2
 * @package com.linsir.auth.repository
 * @project linsir
 * @description $
 * @createTime 2024/1/3 12:13
 * @update [序号][日期YYYY-MM-DD] [更改人姓名][变更描述]
 */
public interface RedisClientRepository extends CrudRepository<RedisRegisteredClient,String> {
    /**
     * 根据客户端Id查询客户端信息
     *
     * @param clientId 客户端id
     * @return 客户端信息
     */
    Optional<RedisRegisteredClient> findByClientId(String clientId);
}
